import { gql } from '@apollo/client';

export const GET_FILE_UPLOAD_URL = gql`
query MyQuery(
  $bucketName: String
  $expiresInSeconds: Int
  $objectName: String 
) {
  file {
    getFileUploadUrl(
      bucketName: $bucketName
      objectName: $objectName
      expiresInSeconds: $expiresInSeconds
    ) {
      expiresInSeconds
      url
    }
  }
}
`;

export const GET_FILE_DOWNLOAD_URL = gql`
query MyQuery(
  $bucketName: String
  $expiresInSeconds: Int
  $objectName: String
) {
  file {
    getFileDownloadUrl(
      bucketName: $bucketName
      objectName: $objectName
      expiresInSeconds: $expiresInSeconds
    ) {
      expiresInSeconds
      url
    }
  }
}
`;